package com.totoro.tygeneratedragonblock.executor.condition;

import com.totoro.tygeneratedragonblock.data.ConditionResult;
import com.totoro.tygeneratedragonblock.utils.TagUtil;
import org.apache.commons.jexl3.JexlBuilder;
import org.apache.commons.jexl3.JexlEngine;
import org.bukkit.entity.Player;

public interface ConditionExecutor {

    ConditionResult execute(String condition, Player player);

    default String getFinalConditionText(String conditionText) {
        return TagUtil.getTagContent(conditionText);
    }
}
